package cn.mntool.fastcode;

import cn.mntool.fastcode.generate.core.Producer;
import cn.mntool.fastcode.generate.utils.SpringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * describe: 代码生成工具启动类
 *
 * @author lianying
 * @date 2020/03/08
 */
@SpringBootApplication
public class FastCodeApplication {

    public static void main(String[] args) {
        SpringUtils.setContext(SpringApplication.run(FastCodeApplication.class, args));
        Producer producer = SpringUtils.getBean(Producer.class);
        producer.start();
    }

}
